A (fairly) Simple Circuit that (usually) Sorts
نویسندگان
چکیده
This paper provides an analysis of a natural k-round tournament over n = 2' players, and demonstrates that the tournament possesses a surprisingly strong ranking property. The ranking property of this tournament is exploited by using it as a building block for efficient parallel sorting algorithms under a variety of different models of computation. Three important applications are provided. First, a sorting circuit of depth 7.44logn is defined that sorts all but a superpolynomially small fraction of the n! possible input permutations. Second, a randomized sorting algorithm is given for the hypercube and related parallel computers (the butterfly, cube-connected cycles and shuffle-exchange) that runs in O(1og n) word steps with very high probability. Third, a randomized algorithm is given for sorting n O(m)-bit records on an n log n node butterfly that runs in O(m + log n) bit steps with very high probability. 1 Introduction Consider the following k-round tournament defined over n = 2k players. In the first round, n/2 matches are played according to a random pairing of the n players. The next k-1 rounds are defined by recursively running a tournament amongst the n/2 winners, and (in parallel) a separate tournament amongst the n/2 losers. Note that the depth k comparator circuit corresponding to this tournament is an n-input butterfly network in which the input is a random permutation and the two outputs of each comparator gate are oriented in the same direction. Hence, this tournament will be referred to as the butterfly toumament of order k. After the tournament has been completed, each player has achieved a unique sequence of match outcomes (wins and losses, 1's and 0's) of length k. Let player i be the player that achieves a W-L sequence corresponding to the k-bit number i , that is, the player " routed " to the ith output of the n-input butterfly com-of all matches are determined by an underlying total order. Further assume that the tournament has available n distinct amounts of prize money to be assigned to the n possible outcome sequences. How should these amounts be assigned? Clearly the largest amount of money should be assigned to player n-1 = W k , who is guaranteed to be the best player. Similarly, the smallest prize should be awarded to player 0 = Lk. On the other hand, it is not clear how to rank all of the remaining n-2 W-L …
منابع مشابه
مقایسه مدلهای فراکتال و مفهوم عدم تطابق و واهلش، در بررسی رسانایی یونی
A simple equivalent circuit to explain the electrical response of an ionic conductor is a parallel circuit consisting of an electrical resistance and a capacitor. Impedance semicircle of such a circuit is exactly a semicircle, but the impedance semicircle of experimental data is a depressed one. To explain this deformed shape of semicircle, usually CPE (constant phase element) is used in equi...
متن کاملAn Innovative Simple Test Circuit for Single-Phase Short Circuit Making Test of High-Voltage Switching Devices
Nowadays, high-voltage circuit breakers have reached such high short-circuit capabilities that testing them under the full rated voltage is generally not possible with direct tests, and they are conducted by using the synthetic test methods. Although the phenomena associated with making tests is of particular importance especially in case of load break switches, but making tests are rather d...
متن کاملA New Strategy for Simultaneous Compensation of Instantaneous Reactive Power and Harmonics of Non-Linear Loads (RESEARCH NOTE)
This paper presents a new control method for simultaneous compensation of instantaneous reactive power and current harmonics by parallel active filters (PAFs). Reference compensating currents of PAF are calculated using the subtraction of instantaneous power from its average value. In this way, it is possible omitting high/low pass filter(s) from the control circuit of PAF, which usually result...
متن کاملDesign of a Single-Layer Circuit Analog Absorber Using Double-Circular-Loop Array via the Equivalent Circuit Model
A broadband Circuit Analogue (CA) absorber using double-circular-loop array is investigated in this paper. A simple equivalent circuit model is presented to accurately analyze this CA absorber. The circuit simulation of the proposed model agrees well with full-wave simulations. Optimization based the equivalent circuit model, is applied to design a single-layer circuit analogue absorber using d...
متن کاملA Micropower Current-Mode Euclidean Distance Calculator for Pattern Recognition
In this paper a new synthesis for circuit design of Euclidean distance calculation is presented. The circuit is implemented based on a simple two-quadrant squarer/divider block. The circuit that employs floating gate MOS (FG-MOS) transistors operating in weak inversion region, features low circuit complexity, low power (<20uW), low supply voltage (0.5V), two quadrant input current, wide dyn...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1990